//
// Created by hjie on 23-7-8.
//

#ifndef OPEN_NET_LINK_H
#define OPEN_NET_LINK_H

#include <string>
#include <cstring>
#include <vector>


struct LinkNode
{
    int data;
    LinkNode * prev_node;
    LinkNode * next_node;
};

struct LinkList
{
    LinkNode * head_node;
    LinkNode * tail_node;
};

void NoSortLinkList(LinkList & list, int length, int min = 5, int max = 100);
void SortLinkList(LinkList & list, int length, int min   = 5, int max = 100);
void PrintLinkList(LinkList & list);


#endif //OPEN_NET_LINK_H
